package com.egoo.ticket.server.config.redis;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @author：victor_tang
 * @Date ：2020/1/14
 * @Description：rediskey常量类
 */
@Service
@Component
public class RedisKeyConstant {
	/**
	 * / redis 发布topic
	 */
	public static String WORK_ORDER_TOPIC = "work-order:topic";

	/**
	 * / 主题类型
	 */
	public static class TopicType{

		public static String TRIGGER = "trigger";

	}

	/**
	 *  创建工单时间key前缀标识
	 */
	public static String WORK_ORDER_CREATE_TIME_PREFIX = "work-order:create-time_";
	/**
	 *  关闭工单时间key前缀标识
	 */
	public static String WORK_ORDER_CLOSE_TIME_PREFIX = "work-order:close-time_";

	/**
	 * 预约回电时间key前缀标识
	 */
	public static String WORK_ORDER_CALL_TIME_PREFIX = "work-order:call-time_";

	/**
	 * 工单id编号
	 */
	public static String WORK_ORDER_ID_NUM = "work-order:work-order-id-num";


	/**
	 * 工单催单
	 */
	public static String WORK_ORDER_URGE ="work-order:urge-time-interval";

	/**
	 * 工单处理lock
	 */
	public static String WORK_ORDER_PROCCESS_LOCK_PREFIX ="work-order" +
			":proccess-lock_";
	/**
	 * 工单处理lock
	 */
	public static String WORK_ORDER_RECEIVE_LOCK_PREFIX ="work-order:receive" +
			"-lock_";
	/**
	 * 获取内管用户数据列表偏移量前缀
	 */
	public static String WORK_ORDER_SYN_EURM_OFFSET_PREFX ="work-order:syn" +
			"-eurm-offset_";
}
